package com.xiyu.service.enums.market.template;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 营销模板类型
*/
@Getter
@AllArgsConstructor
public enum MarketTemplateTypeEnum implements IntArrayValuable {

    /**
    * 个人
    */
    PERSON(1, "个人"),
    /**
    * 公共
    */
    PUBLIC(2, "公共");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MarketTemplateTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MarketTemplateTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
